<template>
  <div class="box-item">
    <div class="box-title">充电桩管理</div>
    <div class="box-body">
      <div class="box-top">
        <div class="box">
          <div class="box-info">
            <div class="light">30个</div>
            <div class="info-text" style="left: 22px;">充电桩数量</div>
          </div>
          <div class="box-info">
            <div class="light">15个</div>
            <div class="info-text">使用中</div>
          </div>
        </div>
      </div>
      <div class="box-bottom">
        <div class="box">
          <div class="box-info">
            <div class="light">12个</div>
            <div class="info-text" style="left: 22px;">空闲</div>
          </div>
          <div class="box-info">
            <div class="light">3个</div>
            <div class="info-text">维修</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getPie3D, getParametricEquation } from '@/utils/chart'; //工具类js，页面路径自己修改

export default {
  name: 'DJtopleft',
  data() {
    return {

    };
  },
  created() {
    this.getData();
  },
  mounted() { },
  beforeDestroy() { },
  methods: {
    getData() {
    },
  },
};
</script>

<style lang="scss" scoped>
.box-item {
  width: 297px;
  height: 207px;
  background: url('../../../assets/img/launch/internet/homeBottombox.png') no-repeat center;
  background-position: center center;
  background-size: 100% 100%;
  margin-bottom: 25px;

  .box-title {
    position: relative;
    height: 55px;
    line-height: 55px;
    text-indent: 1em;
    font-size: 18px;
    font-weight: 600;

    &::after {
      position: absolute;
      top: -2px;
      content: url('../../../assets/img/launch/pack/pack_nav.png');
    }
  }

  .box-body {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: 100%;

    .box-top,
    .box-bottom {
      display: flex;
      justify-content: space-around;
      align-items: center;
      width: calc(100% - 70px);
    }

    .box {
      // position: absolute;
      // top: 6px;
      // left: 0px;
      width: 100%;
      height: 70px;
      z-index: 0;
      // border: 1px solid red;
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;

      .box-info {
        // border: 1px solid red;
        // margin: 8px auto;
        width: 55px;

        // line-height: 38px;
        text-align: center;
        color: #fff;
        font-size: 10px;
        font-weight: 500;
        padding: 0px 10px 45px 10px;

        background: url('../../../assets/img/launch/home/rcc_bg.png') no-repeat center;
        background-position: center 14px;
        background-size: 55px 59px;

        // 呼吸光效
        &::after {
          content: '';
          // position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: radial-gradient(circle,
              rgba(255, 255, 255, 0.1),
              transparent);
          animation: breathe 3s ease-in-out infinite;
        }

        // 缩放效果
        animation: bgScale 4s ease-in-out infinite;

        .light {
          // margin-top: -10px;
          // position: absolute;
          // top:10px;
          // left: 25px;
          margin-bottom: 12px;
          // padding-left: 10px;
          color: #ffb507;
          font-size: 20px;
          font-weight: 600;
          // font-family: 'YouSheBiaoTiHei';
        }

        .info-text {
          // position: absolute;
          // top: 35px;
          // left: 16px;
        }
      }
    }
  }
}
</style>